package com.ruan.controller;

import com.ruan.service.DemoService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;



/**
 * demo controller
 */
@RestController
@RequestMapping("ruan")
public class DemoController {

   @Resource
    DemoService demoService;


    @GetMapping(value = "/demo")
    public String test() {

        return "hello world";
    }

}
